package com.fhz.a2102shopjava.ui.dashboard;

import androidx.lifecycle.LiveData;

import com.fhz.a2102shopjava.anno.LiveDataCallAdapterFengService;
import com.fhz.a2102shopjava.api.FengService;
import com.fhz.a2102shopjava.callback.ApiResponse;
import com.fhz.a2102shopjava.entity.Category;

import java.util.List;

import javax.inject.Inject;

import retrofit2.http.Query;

/**
 * 时间:2023/8/15
 *
 * @author Mr.Feng
 * 简述:
 */
public class DashboardRemoteDataSource {

    @Inject
    @LiveDataCallAdapterFengService
    public FengService mFengService;

    @Inject
    public DashboardRemoteDataSource() {
    }


    public LiveData<ApiResponse<List<Category>>> getCategory(int type){
       return mFengService.getCategory(type);
    }




}   
